package com.itheima.tlias.po;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class InsertClazzParam {
    private Integer id;
    @NotNull(message = "班级名称不能为空")
    @Length(min = 4,max = 30,message = "班级名称长度为4~30之间")
    private String name;
    @NotNull(message = "班级教室不能为空")
    @Length(min = 1,max = 20,message = "班级教室号码长度为1~20之间")
    private String room;
    private String beginDate;
    private String endDate;
    private Integer masterId;
    private Integer subject;
}
